#!/usr/bin/python
# -*- coding: UTF-8 -*-
import matplotlib.pyplot as plot
import numpy as np

x=np.arange(-10,11,1)
y=x*x
plot.plot(x,x*x)
plot.show()


def changeZb():
    plot.plot(x, x * x)
    #4个参数
    plot.axis([-5, 5, 20, 60])
    plot.show()


def alone():
    #dan
    plot.plot(x, x * x)
    # plot.xlim(xmin=3,xmax=5)
    plot.xlim(xmin=3)
    plot.ylim(ymin=30)
    plot.show()


